package hu.vissy.yacap.parser;

import hu.vissy.notification.Notification.Level;

public class ParserOptions {

    private boolean checkMisplacedUnvaluedOption = true;
    private Level stopOnMessageLevel = Level._MAX;

    public boolean isCheckMisplacedUnvaluedOption() {
        return checkMisplacedUnvaluedOption;
    }

    public ParserOptions withIgnoreCheckingMisplacedUnvaluedOption() {
        checkMisplacedUnvaluedOption = false;
        return this;
    }

    public Level getStopOnMessageLevel() {
        return stopOnMessageLevel;
    }

    public ParserOptions withStopOnMessageLevel(Level stopOnMessageLevel) {
        this.stopOnMessageLevel = stopOnMessageLevel;
        return this;
    }

}
